package demo.db.redis.vo;

import com.alibaba.fastjson.JSON;

/**
 * 慢请求
 */
public class Slowlog {

    private String redisIp;

    private int redisPort;

    private long id;

    private long timeStamp;

    private double executionTime;

    private String args;

    public Slowlog() {
        super();
    }

    public Slowlog(String redisIp, int redisPort, long id, long timeStamp, double executionTime, String args) {
        super();
        this.redisIp = redisIp;
        this.redisPort = redisPort;
        this.id = id;
        this.timeStamp = timeStamp;
        this.executionTime = executionTime;
        this.args = args;
    }

    public String getRedisIp() {
        return redisIp;
    }

    public void setRedisIp(String redisIp) {
        this.redisIp = redisIp;
    }

    public int getRedisPort() {
        return redisPort;
    }

    public void setRedisPort(int redisPort) {
        this.redisPort = redisPort;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(long timeStamp) {
        this.timeStamp = timeStamp;
    }

    public double getExecutionTime() {
        return executionTime;
    }

    public void setExecutionTime(double executionTime) {
        this.executionTime = executionTime;
    }

    public String getArgs() {
        return args;
    }

    public void setArgs(String args) {
        this.args = args;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

}
